package com.myfoon.model.entryprocessor;

import com.myfoon.model.cacheable.EventFIFO;

import com.tangosol.util.InvocableMap;
import com.tangosol.util.processor.AbstractProcessor;

public class EventInserter extends AbstractProcessor {
    private Long id;
    
    public EventInserter() {
    }
    
    public EventInserter(Long id) {
        this.id = id;
    }

    public Object process(InvocableMap.Entry entry) {        
        ((EventFIFO)entry.getValue()).push(id);        
        return null;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
}
